if {[catch {
  
  if {[string equal "Linux" $tcl_platform(os)]} {
    set lib_ext so
  } else {
    set lib_ext dylib
  }
  
  if {[lsearch [info vars] mental_asr] < 0} {
    puts " "
    puts "operate.tcl error: mental_asr variable not found"
    puts "Its usually means, that you are using improper operate.tcl"
    puts "For example, you`ve launched mental_fsm executable with"
    puts "mental asr project folder"
  } else {
  
    if { $mental_asr(loaded) } {
      puts "****************************************************************"
      puts "Mentalstate ASR core loaded"
      puts " "
      puts "Running startup script..."
  
      inpdrv load "./libs/libwav_input.${lib_ext}"
      puts "Activating network interface..."
    
    } else {
      puts "****************************************************************"
      puts "Mentalstate ASR core failed"
      puts " "
    }
  
  }
  
  puts "****************************************************************"
  puts "Entering interactive mode..."
  
  source [file join $mental_asr(project) test.tcl]
} err ]} {
	puts "processors/load.tcl error:"
	puts $err
}